import request from '@/utils/request';
// 手机号登录
export function getPhoneLogin(data) {
  return request({
    url: '/index/phoneLogin',
    headers: {
      isToken: false,
      repeatSubmit: false,
    },
    method: 'post',
    data: data,
  });
}

//会员卡登录
export function getMemberLogin(data) {
  return request({
    url: '/index/memberLogin',
    headers: {
      isToken: false,
      repeatSubmit: false,
    },
    method: 'post',
    data: data,
  });
}

//注册
export function getPhoneRegister(data) {
  return request({
    url: '/index/phoneRegister',
    method: 'post',
    data: data,
  });
}

//发送验证码
export function getSendCode(data) {
  return request({
    // url: '/index/sendCode',
    url: '/index/sendCodev3',
    method: 'post',
    data: data,
  });
}

// 修改密码
export function getEditPwd(data) {
  return request({
    url: '/index/editPwd',
    method: 'post',
    data: data,
  });
}

// 会员卡绑定
export function getMemberBind(data) {
  return request({
    url: '/index/memberBind',
    method: 'post',
    data: data,
  });
}
